﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="queries.aspx.cs" Inherits="btnet.pages.queries" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title id="titl" runat="server">btnet queries</title>
<link rel="StyleSheet" href="~/scripts/css/btnet.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="../scripts/javascripts/sortable.js"></script>
</head>

<body>
<% security.write_menu(Response, "queries"); %>

<div class="align">

<% if (security.user.is_admin || security.user.can_edit_sql) { %>
	<table border="0" width="80%"><tr>
		<td align="left" valign="top">
			<a href="edit_query.aspx">add new query</a>
		</td>
		<td align="right" valign="top">
			<form id="Form1" runat="server">
				<span class="lbl">show everybody's private queries:</span>
				<asp:CheckBox id="show_all" class="cb" runat="server" AutoPostback="True" />
			</form>
		</td></tr>
	</table>
<%

}
else
{
	Response.Write ("<p>");
}

%>


<%
    displaylist();

%>
</div>
<% Response.Write(Application["custom_footer"]); %>
</body>
</html>
